//
//  MyWebVC.m
//  QZBaseDemo
//
//  Created by Mac on 5/18/20.
//  Copyright © 2020 QF_iOS. All rights reserved.
//

#import "MyWebVC.h"
#import <WebKit/WebKit.h>
#import "SLWebViewController.h"

@interface MyWebVC ()
@property (nonatomic, strong) SLWebViewController *slweb;
@end

@implementation MyWebVC

-(void)viewDidAppear:(BOOL)animated {
    __block NSString *welPic;
    NSDictionary *dict = @{@"logoId":LOGOID};
    NSString *urlString = [NSString stringWithFormat:@"%@%@",uHostURL,getAppLogo];
    [[HttpRequest shardWebUtil] postNetworkRequestURLString:urlString parameters:dict success:^(id obj) {
        DLog(@"localHtmlClicked:%@",obj);
        if ([obj[@"data"] isEqual:[NSNull null]]) {
            return;
        }
        welPic = obj[@"data"][@"website"];
    } fail:^(NSError *error) {
        
    }];
}


- (void)viewDidLoad {
    [super viewDidLoad];
    _slweb = [self markSLWeb];
    [self.view addSubview:_slweb.view];
}

- (SLWebViewController *)markSLWeb
{
    if (!_slweb) {
        _slweb = [[SLWebViewController alloc] init];
    }
    return _slweb;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
